ELEMENTS

Editing
  • account_tree
  • bug_report

<thead>

표 형식에서 데이터를 나타내는 열 그룹의 제목 또는 레이블이 작성된 셀로 구성된 행 그룹을 나타낸다.

  • 콘텐츠 분류

    NONE

  • 허용된 부모 요소 또는 위치

    <TABLE>

    <caption><colgroup> 요소 뒤와 <tbody>, <tfoot><tr> 요소 앞에 위치한다. <thead> 요소는 <table> 요소의 자식으로 한 개만 가능하다.

  • 허용된 자식 요소

    SCRIPT SUPPORTING, <TR>

    0개 이상의 <tr> 및 스크립트 지원(script supporting) 요소

  • 태그 생략

    종료 태그 생략 가능

    <thead> 요소 바로 뒤에 <tbody> 또는 <tfoot> 요소가 오는 경우 <thead> 요소의 종료 태그를 생략할 수 있다.

  • DOM Interface

    HTMLTableSectionElement

    [Exposed=Window]
    interface HTMLTableSectionElement : HTMLElement {
      [HTMLConstructor] constructor();
    
      [SameObject] readonly attribute HTMLCollection rows;
      HTMLTableRowElement insertRow(optional long index = -1);
      [CEReactions] undefined deleteRow(long index);
    
      // also has obsolete members
    };

구문

마크업 형식
<table> <thead> <tr><th></th><th></th></tr> <tr><th></th><th></th></tr> </thead>
</table>
Example

글로벌 애트리뷰트

일부 글로벌 애트리뷰트는 이 요소에서 사용되지 않을 수 있다.

글로벌 이벤트 핸들러

일부 글로벌 이벤트 핸들러는 이 요소에서 사용되지 않을 수 있다. 이벤트 등록은 자바스크립트 사용을 권장한다.

버전 명세

HTML Standard
#the-thead-element

지원 웹브라우저